{template 'web/common/common'}
{template 'web/goods/navbar'}
<link rel="stylesheet" type="text/css" href="../addons/kundian_farm/resource/css/style.css" />
<div class="panel panel-success">
    <div class="panel-heading">
        <h3 class="panel-title">
            积分商城分类
        </h3>
    </div>
    <div class="panel-body">
        <form id="sign-form" class="form-horizontal" role="form" method="post" action="{url 'site/entry/integralShop',array('m'=>'kundian_farm','op'=>'goods_type_save','version_id'=>$_GPC['version_id'])}" name="submit" style="padding: 20px 0;">
            <div class="form-group">
                <label for="type_name" class="col-sm-2 control-label">分类名称</label>
                <div class="col-sm-8">
                    <input type="text" class="form-control"  name="type_name" id="type_name" value="{$list['type_name']}">
                    <input type="hidden" name="id" value="{$list['id']}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">图标(60*60)</label>
                <div class="col-sm-8">
                    {php echo tpl_form_field_image('icon',$list['icon']);}
                </div>
            </div>



            <div class="form-group">
                <label class="col-sm-2 control-label">是否显示</label>
                <div class="col-sm-8">
                    {if $list['status']==1}
                    <input type="checkbox" checked class="js-switch" value="1" name="status">
                    {else}
                    <input type="checkbox" class="js-switch" name="status" value="1">
                    {/if}
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">排序</label>
                <div class="col-sm-8">
                    <input type="number" class="form-control"  name="rank" value="{$list['rank']}">
                </div>
            </div>

            <div class="form-group">

                <div class="col-sm-offset-2 col-sm-10">
                    <input type="submit" name="submit" class="btn btn-default">
                    <a class="btn btn-default" href="{url 'site/entry/integralShop',array('m'=>'kundian_farm','op'=>'integral_goods_type')}">返回</a>
                </div>
            </div>



        </form>
    </div>
</div>
